package com.ruoyi.project.channel.vwChannelWbCashDayStat.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.channel.vwChannelWbCashDayStat.mapper.VwChannelWbCashDayStatMapper;
import com.ruoyi.project.channel.vwChannelWbCashDayStat.domain.VwChannelWbCashDayStat;
import com.ruoyi.project.channel.vwChannelWbCashDayStat.service.IVwChannelWbCashDayStatService;
import com.ruoyi.common.utils.text.Convert;

/**
 * VIEW 服务层实现
 * 
 * @author CAIN
 * @date 2019-12-06
 */
@Service
public class VwChannelWbCashDayStatServiceImpl implements IVwChannelWbCashDayStatService 
{
	@Autowired
	private VwChannelWbCashDayStatMapper vwChannelWbCashDayStatMapper;

	/**
     * 查询VIEW信息
     * 
     * @param userId VIEWID
     * @return VIEW信息
     */
    @Override
	public VwChannelWbCashDayStat selectVwChannelWbCashDayStatById(Long userId)
	{
	    return vwChannelWbCashDayStatMapper.selectVwChannelWbCashDayStatById(userId);
	}
	
	/**
     * 查询VIEW列表
     * 
     * @param vwChannelWbCashDayStat VIEW信息
     * @return VIEW集合
     */
	@Override
	public List<VwChannelWbCashDayStat> selectVwChannelWbCashDayStatList(VwChannelWbCashDayStat vwChannelWbCashDayStat)
	{
	    return vwChannelWbCashDayStatMapper.selectVwChannelWbCashDayStatList(vwChannelWbCashDayStat);
	}
	
    /**
     * 新增VIEW
     * 
     * @param vwChannelWbCashDayStat VIEW信息
     * @return 结果
     */
	@Override
	public int insertVwChannelWbCashDayStat(VwChannelWbCashDayStat vwChannelWbCashDayStat)
	{
	    return vwChannelWbCashDayStatMapper.insertVwChannelWbCashDayStat(vwChannelWbCashDayStat);
	}
	
	/**
     * 修改VIEW
     * 
     * @param vwChannelWbCashDayStat VIEW信息
     * @return 结果
     */
	@Override
	public int updateVwChannelWbCashDayStat(VwChannelWbCashDayStat vwChannelWbCashDayStat)
	{
	    return vwChannelWbCashDayStatMapper.updateVwChannelWbCashDayStat(vwChannelWbCashDayStat);
	}

	/**
     * 删除VIEW对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteVwChannelWbCashDayStatByIds(String ids)
	{
		return vwChannelWbCashDayStatMapper.deleteVwChannelWbCashDayStatByIds(Convert.toStrArray(ids));
	}
	
}
